using System;
using System.Collections.Generic;
using System.Text;
using OgilvyOne.DALFactory;
using OgilvyOne.IDAL;
using OgilvyOne.Model;
using System.Collections;


namespace OgilvyOne.BLL
{
    public class AssetClass
    {
        // Methods
        public void Delete(int asset_id)
        {
            Asset.Create().Delete(asset_id);
        }

        public AssetInfo getAssetInfo(int con_id)
        {
            return Asset.Create().getAssetInfo(con_id);
        }

        public IList getAssetList(int con_id)
        {
            return this.getAssetList(con_id, 0);
        }

        public IList getAssetList(int con_id, int category)
        {
            return Asset.Create().getAssetList(con_id, category);
        }

        public IList getAssetList(int menuId, int con_id, int category)
        {
            return Asset.Create().getAssetList(menuId, con_id, category);
        }

        public IList getAssetListIsView(int con_id)
        {
            return Asset.Create().getAssetListIsView(con_id);
        }

        public IList getAssetListViewInNavigation(int con_id)
        {
            return Asset.Create().getAssetListViewInNavigation(con_id);
        }

        public int getMenuIdByAssetId(int assetId)
        {
            return Asset.Create().getMenuIdByAssetId(assetId);
        }

        public void Insert(AssetInfo assetcls)
        {
            Asset.Create().Insert(assetcls);
        }

        public void InsertAssetMenu(AssetInfo assetcls, int menuId)
        {
            Asset.Create().InsertAssetMenu(assetcls.Asset_ID, menuId);
        }

        public void Update(AssetInfo assetinfo)
        {
            Asset.Create().Update(assetinfo);
        }

        public void UpdateMenuAsset(int assetId, int menuId)
        {
            Asset.Create().UpdateMenuAsset(assetId, menuId);
        }

    }
}
